package com.wanmait.schedule.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.schedule.entity.Role;
import com.wanmait.schedule.entity.Student;
import com.wanmait.schedule.entity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 教师表 服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface TeacherService extends IService<Teacher> {
    PageInfo<Teacher> list(Teacher teacher, Integer pageNum);
    Teacher login(String username, String password);
    //判断身份证是否重复
    Boolean identityRepeat(String identity);
    Teacher login(Teacher teacher);
    List<Teacher> findList();
    List<Integer> findAllId();
    List<Role> findRoles(Integer id);
}
